﻿@{
    ViewBag.Title = "Handvn";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model handvn.Models.UserView
<div class="tl_content">
    <div class="tl_user_sidebar">
        <div class="tl_title_home">
            Tất cả sản phẩm Shop</div>
        @foreach (var item in Model.Product)
        {  
            <div class="tl_item">
                <a href="../product/viewdetail?prod=@item.ProductID">
                    <img class="tl_item_img" src="../../Images/HinhAnh/@item.HinhAnh" alt="@item.TenSanPham"/></a>
                <a  class="tl_item_title" href="../product/viewdetail?prod=@item.ProductID">@item.TenSanPham</a>
                @* @Html.ActionLink(item.TenSanPham, "../DetailProduct/View", new { ProductID = item.ProductID })*@
                <a  class="tl_item_user" href="../user/view?user=@item.UserID">@item.User.TenKhachhang</a>
                <div class="tl_item_rice">@item.GiaSanPham vnd</div>
            </div>       
        }
    </div>
    <div class="tl_box_user">
        
        @foreach (var item in Model.User)
        { 
            <h4>
            Thông tin Shop</h4>
            <img  src="../../Images/HinhAnh/@item.HinhAnh" style="width:90px; height:90px;border:1px solid #1b9333;padding:5px 5px 5px 5px"alt=""/>
            <div class="tl_user_profile">
            <strong>Cửa hàng:</strong>
                @item.TenKhachhang<br />
                <strong>Điện thoại:</strong>
                @item.DienThoai<br />
                <strong>Email:</strong>
                @item.Email<br />
                <strong>Địa chỉ liên hệ:</strong><br/>
                @item.DiaChi
            </div>                  
        }
    </div>
</div>
